package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.IRegisterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author wanfeng
 * @version 1.0
 * @since 2025-09-16 14:46
 */
@RestController("openRegisterController")
@RequestMapping("/open/serve-provider")
@Api(tags = "白名单接口 - 注册接口")
public class RegisterController {

    @Resource
    private IRegisterService registerService;

    /**
     * 机构人员注册
     * @param registerReqDTO
     */
    @PostMapping("/institution/register")
    @ApiOperation("机构注册接口")
    public void institutionRegister(@RequestBody InstitutionRegisterReqDTO registerReqDTO){
        registerService.institutionRegister(registerReqDTO);
    }
}
